﻿using com.guojin.core.io.message;
using com.guojin.core.io;

namespace com.guojin.mj.net.message.login
{
    public class GetDairu : Message
    {
        public static int TYPE = 7;
        public static int ID = 157;

        public int Score { get; set; }
        public int LocationIndex { get; set; } //玩家编号
        public string RoomName { get; set; }
        public int userId { get;set;}
        public string roomID{get;set;}

        public void decode(Input _in)
        {
            Score = _in.readInt();
            LocationIndex = _in.readInt();
            RoomName = _in.readString();
            userId = _in.readInt();
            roomID = _in.readString();
        }

        public void encode(Output _out)
        {
        }

        public int getMessageId()
        {
            return ID;
        }

        public int getMessageType()
        {
            return TYPE;
        }

        public string toString()
        {
            return "";
        }
    }
}
